package com.wanmait.gohome.service.impl;

import com.github.pagehelper.PageInfo;
import com.wanmait.gohome.mapper.ProfessionMapper;
import com.wanmait.gohome.pojo.Profession;
import com.wanmait.gohome.service.ProfessionService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional
public class ProfessionServiceImpl implements ProfessionService {
    @Resource
    private ProfessionMapper professionMapper;

    @Override
    public void insert(Profession object) {

    }

    @Override
    public void update(Integer id) {

    }

    @Override
    public void delete(Integer id) {

    }

    @Override
    public void delete(String ids) {

    }


    /**
     *
     * @return    查找所有职业
     */
    @Override
    public List<Profession> findAll() {
        return professionMapper.findAll();
    }

    @Override
    public Profession findById(Integer id) {
        return null;
    }

    @Override
    public PageInfo<Profession> findPage() {
        return null;
    }

    @Override
    public List<Profession> findAll(Profession object) {
        return null;
    }

    @Override
    public PageInfo<Profession> findPage(Profession object) {
        return null;
    }


}
